<extend name="Layout:layout_dialog" />
<block name="body_main">
    <form action="{:U('dispatch_edit_save')}" method="post" class="xsui-form">
        <div style="width:600px;">
            <div style="width:300px; float:left; max-height: 130px; overflow-y: auto;">
                <div style="margin-left:5px;">共<strong style="color:#F00; font-weight:bold; padding:0px 3px;">{$sum.count}</strong>个客户, 其中有订单客户<strong style="color:#F00; font-weight:bold; padding:0px 3px;">{$sum.has_order_count}</strong>个</div>
                <table class="xsui-table xsui-table-bordered">
                    <thead>
                    <tr>
                        <th>客户编号</th>
                        <th>客户姓名</th>
                        <th>购买次数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="list" item="vo">
                        <tr data-key="{$vo.id}">
                            <td>{$vo.serial_no}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.buy_count}</td>
                        </tr>
                    </foreach>
                </tbody>
                </table>
            </div>
            <div style="width:280px; float:left; margin-left:10px;" class="xsui-form-vertical">
                <div class="xsui-form-field">
                    <label>分配工号：</label>
                    <input type="text" name="new_users" placeholder="多个工号之间以英文逗号隔开,如：301,302" size="45" />
                </div>
                <div class="xsui-form-field">
                    <label>人均分配：</label>
                    <input type="text" name="per_num" placeholder="不填则由系统后台分配,如：10" size="45" />
                </div>
                <div class="xsui-form-field">
                    <label>备注信息：</label>
                    <input type="text" name="remark" placeholder="备注信息" size="45" />
                </div>
                <button type="submit" class="ui-state-default"><i class="fa fa-save"></i>保存</button>
                <button type="reset" class="ui-state-default">重置</button>
            </div>
            <div style="clear:both;"></div>
        </div>
    </form>
</block>
<block name="body_after">
    <script type="text/javascript">
        $('.notbreakline-ellipsis').hover(function () {
            $(this).attr('title', $(this).text());
        })
        var $frmSearch = $('#frmSearch');
        $frmSearch.find(':button').click(function () {
            $frmSearch.find('select option[value=""]').prop('selected', true);
            $frmSearch.find(':text').val('');
        })
    </script>
</block>